//导入ejs
const ejs = require('ejs');
const fs = require('fs');

let str ='我爱你 中国';

let weather = '今天天气不错~';

// let biaobai = ejs.render('我爱你 <%= lover %>',{lover:'宝贝'});
//
// console.log( biaobai);

let file = fs.readFileSync('./ejs_html.html').toString();

let res = ejs.render(file,{str});
console.log(res);